﻿<%@ Page Title="Alteração de cadastro" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="AlterarAluno.aspx.cs" Inherits="CursoUNICEUB.AlterarAluno" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <h1>
        Altere o seu cadastro
    </h1>
    <table>
        <tr>
            <td class="style1">
                <asp:Label ID="Label1" runat="server" Text="Nome :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtNome" runat="server" Width="231px" ReadOnly="true"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <asp:Label ID="Label8" runat="server" Text="Email :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server" Width="231px" MaxLength="30" ReadOnly="true"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <asp:Label ID="Label7" runat="server" Text="Endereço :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEndereco" runat="server" Width="231px" MaxLength="100"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvEndereco" runat="server" Display="Dynamic" ControlToValidate="txtEndereco"
                    ErrorMessage="Endereco." ToolTip="Campo Obrigatório." ValidationGroup="alterar">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <asp:Label ID="Label3" runat="server" Text="Telefone :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtTelefone" runat="server" Width="80px" MaxLength="9"></asp:TextBox>
                <asp:MaskedEditExtender ID="txtTelefone_MaskedEditExtender" runat="server" Mask="9999-9999"
                    MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
                    Enabled="True" TargetControlID="txtTelefone" MaskType="None" ErrorTooltipEnabled="True">
                </asp:MaskedEditExtender>
                <asp:RequiredFieldValidator ID="rfvTelefone" runat="server" Display="Dynamic" ControlToValidate="txtTelefone"
                    ErrorMessage="Telefone." ToolTip="Campo Obrigatório." ValidationGroup="alterar">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revTelefone" runat="server" ErrorMessage="Telefone."
                    ControlToValidate="txtTelefone" Display="Dynamic" ValidationGroup="alterar" Text="*"
                    ToolTip="Telefone incorreto." ValidationExpression="^\d{8}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <asp:Label ID="Label4" runat="server" Text="Celular :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtCelular" runat="server" Width="80px" MaxLength="9"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvCelular" runat="server" Display="Dynamic" ControlToValidate="txtCelular"
                    ErrorMessage="Celular." ToolTip="Campo Obrigatório." ValidationGroup="alterar">*</asp:RequiredFieldValidator>
                <asp:MaskedEditExtender ID="txtCelular_MaskedEditExtender" runat="server" Mask="9999-9999"
                    MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
                    Enabled="True" TargetControlID="txtCelular" MaskType="None" ErrorTooltipEnabled="True">
                </asp:MaskedEditExtender>
                <asp:RegularExpressionValidator ID="revCelular" runat="server" ErrorMessage="Celular."
                    ControlToValidate="txtCelular" Display="Dynamic" ValidationGroup="alterar" Text="*"
                    ToolTip="Celular incorreto." ValidationExpression="^\d{8}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <asp:Label ID="LblInserirCurriculo" runat="server" Text="Curriculo :"></asp:Label>
            </td>
            <td>
                <asp:FileUpload ID="FUInserir" runat="server" />
            </td>

        </tr>
        <tr>
            <td class="style1">
                <asp:Label ID="LblInserirFoto" runat="server" Text="Foto:"></asp:Label>
            </td>
            <td>
                <asp:FileUpload ID="FUInserirFoto" runat="server" />
            </td>

        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="btnAlterar" runat="server" Text="Alterar" ValidationGroup="alterar"
                    OnClick="btnAlterar_Click" />
                <asp:ValidationSummary runat="server" HeaderText="Favor verificar os seguintes campos :"
                    ShowMessageBox="True" ShowSummary="False" ValidationGroup="alterar" />
            </td>
        </tr>
    </table>
</asp:Content>
